package cc.test.service;

import cc.test.dao.UserDao;
import cc.test.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserService {

  @Resource
  private UserDao userDao;

  public User get(int id) {
    return userDao.get(id);
  }

  public List<User> getAll() {
    return userDao.getAll();
  }
}
